using System;
using System.Text;

namespace OVS.BusinessObjects
{
	[Serializable()]
	public partial class Alert
	{
		private int _aler_id;

		public int aler_id
		{
			get { return _aler_id; }
			set { _aler_id = value; }
		}

		private Nullable<int> _came_id;

		public Nullable<int> came_id
		{
			get { return _came_id; }
			set { _came_id = value; }
		}

		private Nullable<DateTime> _aler_dt;

		public Nullable<DateTime> aler_dt
		{
			get { return _aler_dt; }
			set { _aler_dt = value; }
		}

		private Nullable<int> _aler_lvl;

		public Nullable<int> aler_lvl
		{
			get { return _aler_lvl; }
			set { _aler_lvl = value; }
		}

		private Nullable<bool> _aler_status;

		public Nullable<bool> aler_status
		{
			get { return _aler_status; }
			set { _aler_status = value; }
		}

		private string _aler_image_traj;

		public string aler_image_traj
		{
			get { return _aler_image_traj; }
			set { _aler_image_traj = value; }
		}

		private Nullable<int> _vide_id;

		public Nullable<int> vide_id
		{
			get { return _vide_id; }
			set { _vide_id = value; }
		}

		private string _aler_image;

		public string aler_image
		{
			get { return _aler_image; }
			set { _aler_image = value; }
		}

		private Nullable<int> _imde_id;

		public Nullable<int> imde_id
		{
			get { return _imde_id; }
			set { _imde_id = value; }
		}

		private Nullable<int> _user_id;

		public Nullable<int> user_id
		{
			get { return _user_id; }
			set { _user_id = value; }
		}

		public Alert()
		{ }

		public Alert(int aler_id,Nullable<int> came_id,Nullable<DateTime> aler_dt,Nullable<int> aler_lvl,Nullable<bool> aler_status,string aler_image_traj,Nullable<int> vide_id,string aler_image,Nullable<int> imde_id,Nullable<int> user_id)
		{
			this.aler_id = aler_id;
			this.came_id = came_id;
			this.aler_dt = aler_dt;
			this.aler_lvl = aler_lvl;
			this.aler_status = aler_status;
			this.aler_image_traj = aler_image_traj;
			this.vide_id = vide_id;
			this.aler_image = aler_image;
			this.imde_id = imde_id;
			this.user_id = user_id;
		}

		public override string ToString()
		{
			return "aler_id = " + aler_id.ToString() + ",came_id = " + came_id.ToString() + ",aler_dt = " + aler_dt.ToString() + ",aler_lvl = " + aler_lvl.ToString() + ",aler_status = " + aler_status.ToString() + ",aler_image_traj = " + aler_image_traj + ",vide_id = " + vide_id.ToString() + ",aler_image = " + aler_image + ",imde_id = " + imde_id.ToString() + ",user_id = " + user_id.ToString();
		}

		public partial class aler_idComparer : System.Collections.Generic.IComparer<Alert>
		{
			public SorterMode SorterMode;
			public aler_idComparer()
			{ }
			public aler_idComparer(SorterMode SorterMode)
			{
				this.SorterMode = SorterMode;
			}
			#region IComparer<Alert> Membres
			int System.Collections.Generic.IComparer<Alert>.Compare(Alert x, Alert y)
			{
				if (SorterMode == SorterMode.Ascending)
				{
					return y.aler_id.CompareTo(x.aler_id);
				}
				else
				{
					return x.aler_id.CompareTo(y.aler_id);
				}
			}
			#endregion
		}
		public partial class aler_image_trajComparer : System.Collections.Generic.IComparer<Alert>
		{
			public SorterMode SorterMode;
			public aler_image_trajComparer()
			{ }
			public aler_image_trajComparer(SorterMode SorterMode)
			{
				this.SorterMode = SorterMode;
			}
			#region IComparer<Alert> Membres
			int System.Collections.Generic.IComparer<Alert>.Compare(Alert x, Alert y)
			{
				if (SorterMode == SorterMode.Ascending)
				{
					return y.aler_image_traj.CompareTo(x.aler_image_traj);
				}
				else
				{
					return x.aler_image_traj.CompareTo(y.aler_image_traj);
				}
			}
			#endregion
		}
		public partial class aler_imageComparer : System.Collections.Generic.IComparer<Alert>
		{
			public SorterMode SorterMode;
			public aler_imageComparer()
			{ }
			public aler_imageComparer(SorterMode SorterMode)
			{
				this.SorterMode = SorterMode;
			}
			#region IComparer<Alert> Membres
			int System.Collections.Generic.IComparer<Alert>.Compare(Alert x, Alert y)
			{
				if (SorterMode == SorterMode.Ascending)
				{
					return y.aler_image.CompareTo(x.aler_image);
				}
				else
				{
					return x.aler_image.CompareTo(y.aler_image);
				}
			}
			#endregion
		}
	}
}
